package com.myteam.fugaocrm.service;

import java.util.List;

import javax.annotation.Resource;

import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import com.myteam.fugaocrm.modle.FgProject;
import com.myteam.fugaocrm.sqldb.mapper.FgProjectMapper;

@Service
public class ProjectServiceImpl implements BaseService{
	
	@Resource 
	protected FgProjectMapper fgProjectMapper;
	
	public List<FgProject> findFgProjectList(FgProject fgProject) {
		if(StringUtils.isBlank(fgProject.getProjectStatus())){
			fgProject.setProjectStatus(null);
		}
		List<FgProject> list = fgProjectMapper.findFgProjectList(fgProject);
		if(list != null && !list.isEmpty()) {
			return list;
		}
		return null;
	}
	
	

}
